package com.chongqing.shiro.exception;


/**
 * @Description: shiro自定义异常
 * -------------------
 * @Author: YangXingfu
 * @Date: 2019/01/03 14:38
 */

public class ShiroException extends Exception {

    private String code;

    private String msg;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public ShiroException() {
        super();
    }

    public ShiroException(String message) {
        super(message);
        this.msg = message;
    }

    public ShiroException(String code, String message) {
        super(message);
        this.code = code;
        this.msg = message;
    }

    public ShiroException(String message, Throwable cause) {
        super(message, cause);
        this.msg = message;
    }

    public ShiroException(Throwable cause) {
        super(cause);
    }

    protected ShiroException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.msg = message;
    }
}